﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:igWindows="http://infragistics.com/Windows"
	xmlns:igDP="http://infragistics.com/DataPresenter"
	xmlns:igEditors="http://infragistics.com/Editors"
	xmlns:voc="clr-namespace:ViewOn.UI.Control"
    xmlns:host="clr-namespace:ViewOnCore.HostContract;assembly=ViewOnCore"
    xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF;assembly=ViewOnCore">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="..\Shared.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <Style TargetType="{x:Type igDP:XamDataPresenter}">
        <Setter Property="Background" Value="#00ffffff"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:XamDataPresenter}">
                    <Border
								  Background="#00ffffff"
								  BorderBrush="#00ffffff"
								  BorderThickness="0"
					  >
                        <Grid Name ="PART_ContentSiteGrid"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- CellValuePresenter : xdpImageSourceCellValuePresenter -->
    <Style x:Key="xdpImageSourceCellValuePresenter" TargetType="{x:Type igDP:CellValuePresenter}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                    <Image
						HorizontalAlignment="Center"
						VerticalAlignment="Center"
						Margin="10,10,10,10"
						Source="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- CellValuePresenter : xdpIconSourceCellValuePresenter -->
    <Style x:Key="xdpIconSourceCellValuePresenter" TargetType="{x:Type igDP:CellValuePresenter}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                    <Grid Width="20" Height="20">
                        <wpf:Icon
													Margin="{TemplateBinding Padding}"
													HorizontalAlignment="Center"
													VerticalAlignment="Center"
													Width="18"
													Height="18"
													Source="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Header background -->
    <Style TargetType="{x:Type igDP:DataRecordPresenter}">
        <!--Setter Property="HeaderAreaBackground" Value="#FF3A3A3A"/-->
        <Setter Property="HeaderAreaBackground" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:DataRecordPresenter}">
                    <igWindows:CardPanel x:Name="baseGrid">
                        <!-- Background="{TemplateBinding Background}" -->
                        <!--Border
							Visibility="Collapsed"
							Background="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, AddRowBackground}}"
							BorderBrush="#FFA9A9A9"
							HorizontalAlignment="Stretch"
							x:Name="addRowFooter"
							VerticalAlignment="Stretch"
							Width="Auto" Height="Auto"
							BorderThickness="0,0,0,1"
							/-->
                        <Grid Margin="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <!-- Expansion Checkbox -->
                            <igWindows:ExpansionIndicator
															 x:Name="ExpansionIndicator"
															 Grid.Row="1"
															 Grid.Column="0"
															 Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ExpansionIndicatorVisibility}"
															 IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsExpanded, Mode=TwoWay}"
									/>
                            <!-- Header Background -->
                            <!-- Added 8/2/2006 GH -->
                            <igWindows:CardPanel x:Name="SpacerFill" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Visibility="Visible">
                                <!--Rectangle x:Name="fill" Visibility="Hidden"  Margin="0,0,0,0" Fill="{TemplateBinding HeaderAreaBackground}" /-->
                                <!--Rectangle x:Name="lightLine" Visibility="Hidden" Fill="#3FFFFFFF" VerticalAlignment="Top" Margin="0,1,0,0" Width="Auto" Height="1"/>
									<Rectangle x:Name="darkLine" Visibility="Hidden" Fill="#66000000" VerticalAlignment="Top" Margin="0,0,0,0" Width="Auto" Height="1"/-->
                            </igWindows:CardPanel>
                            <!-- End Added 8/2/2006 GH -->
                            <!-- Header Content -->
                            <ContentPresenter
															 x:Name="PART_HeaderContentSite"
															 Grid.Row="0"
															 Grid.Column="1"
															 Content="{TemplateBinding HeaderContent}"
															 Visibility="Visible"
															 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
															 VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>

                            <!-- Record Content -->
                            <ContentPresenter
														  x:Name="PART_RecordContentSite"
														  Grid.Row="1"
														  Grid.Column="1"
														  Content="{TemplateBinding DataContext}"
														  ContentTemplate="{TemplateBinding RecordContentAreaTemplate}"
														  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
														  VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />

                            <!-- Nested Content -->
                            <Border x:Name="PART_NestedContentSite"
															 Grid.Row="2"
															 Grid.Column="1"
															 Visibility="Visible"
															 HorizontalAlignment="Left"
															 VerticalAlignment="Top"
															 Background="{TemplateBinding NestedContentBackground}">
                                <!-- AS 11/14/07 BR26035 
								The namescope was broken because the recordlistcontrol was not in the logical tree. We 
								need to use a ContentControl instead so the content	is made a logical child. -->
                                <ContentControl
																	 Content="{TemplateBinding NestedContent}"
																 Margin="2,2,0,0" />
                                <!--Margin="10,10,0,0" />-->

                            </Border>
                        </Grid>
                    </igWindows:CardPanel>

                    <ControlTemplate.Triggers>

                        <Trigger Property="Orientation" Value="Horizontal">
                            <Setter TargetName="PART_HeaderContentSite" Property="Grid.Row" Value="1" />
                            <Setter TargetName="PART_HeaderContentSite" Property="Grid.Column" Value="0" />
                            <Setter TargetName="PART_NestedContentSite" Property="Grid.Row" Value="1" />
                            <Setter TargetName="PART_NestedContentSite" Property="Grid.Column" Value="2" />
                            <Setter TargetName="PART_RecordContentSite" Property="VerticalAlignment" Value="Top" />
                            <Setter TargetName="ExpansionIndicator" Property="Grid.Row" Value="0" />
                            <Setter TargetName="ExpansionIndicator" Property="Grid.Column" Value="1" />
                            <Setter TargetName="SpacerFill" Property="Grid.ColumnSpan" Value="1" />
                            <Setter TargetName="SpacerFill" Property="Grid.RowSpan" Value="3" />
                        </Trigger>

                        <Trigger Property="ShouldDisplayRecordContent" Value="False">
                            <Setter TargetName="PART_RecordContentSite" Property="Visibility" Value="Collapsed" />
                            <!--JJD 9/4/07 - BR26153 -->
                            <!--Only set ExpansionIndicator Visibility to Hidden if is was Visible (see new MultiTrigger below) -->
                            <!--<Setter TargetName="ExpansionIndicator" Property="Visibility" Value="Hidden" />-->
                        </Trigger>

                        <!--JJD 9/4/07 - BR26153 -->
                        <!--Only set ExpansionIndicator Visibility to Hidden if is was Visible -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="ShouldDisplayRecordContent" Value="False"/>
                                <Condition Property="IsHeaderRecord" Value="False"/>
                                <Condition Property="ExpansionIndicatorVisibility" Value="Visible"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="ExpansionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiTrigger>

                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Orientation" Value="Horizontal"/>
                                <Condition Property="ShouldDisplayRecordContent" Value="False"/>
                            </MultiTrigger.Conditions>

                            <Setter TargetName="ExpansionIndicator" Property="Grid.Column" Value="2" />

                        </MultiTrigger>

                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Orientation" Value="Vertical"/>
                                <Condition Property="ShouldDisplayRecordContent" Value="False"/>
                            </MultiTrigger.Conditions>

                            <Setter TargetName="ExpansionIndicator" Property="Grid.Row" Value="2" />

                        </MultiTrigger>

                        <Trigger Property="IsHeaderRecord" Value="True">
                            <!--JJD 9/4/07 - BR26153 -->
                            <!--Only set ExpansionIndicator Visibility to Hidden if is was Visible (see new MultiTrigger below) -->
                            <!--<Setter TargetName="ExpansionIndicator" Property="Visibility" Value="Hidden" />-->
                            <Setter TargetName="ExpansionIndicator" Property="Grid.Row" Value="0" />
                            <Setter TargetName="ExpansionIndicator" Property="Grid.Column" Value="0" />
                        </Trigger>

                        <!--JJD 9/4/07 - BR26153 -->
                        <!--Only set ExpansionIndicator Visibility to Hidden if is was Visible -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsHeaderRecord" Value="True"/>
                                <Condition Property="ExpansionIndicatorVisibility" Value="Visible"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="ExpansionIndicator" Property="Visibility" Value="Hidden" />
                        </MultiTrigger>

                        <Trigger Property="HasHeaderContent" Value="False">
                            <Setter Property="Visibility" TargetName="SpacerFill" Value="Collapsed"/>
                            <Setter Property="Visibility" TargetName="PART_HeaderContentSite" Value="Collapsed"/>
                        </Trigger>

                        <Trigger Property="HasNestedContent" Value="true">
                            <Setter TargetName="PART_NestedContentSite" Property="Visibility" Value="Visible" />
                            <Setter TargetName="baseGrid" Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}" />
                        </Trigger>

                        <Trigger Property="HasNestedContent" Value="False">
                            <Setter Property="Visibility" TargetName="PART_NestedContentSite" Value="Collapsed"/>
                        </Trigger>

                        <Trigger Property="IsFixedOnTop" Value="true">
                            <!--Setter Property="Visibility" TargetName="addRowFooter" Value="Visible"/-->
                            <Setter Property="Margin" TargetName="PART_RecordContentSite" Value="0,2,0,2"/>
                        </Trigger>

                        <Trigger Property="IsFixedOnBottom" Value="true">
                            <Setter Property="Margin" Value="0,2,0,0" />
                            <Setter Property="Margin" TargetName="PART_RecordContentSite" Value="0,2,0,2"/>
                            <!--Setter Property="Visibility" TargetName="addRowFooter" Value="Visible"/>
							<Setter Property="BorderThickness" TargetName="addRowFooter" Value="0,1,0,0"/-->
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Header style -->
    <Style TargetType="{x:Type igDP:HeaderPresenter}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:HeaderPresenter}">
                    <!--Border Background="#FF3A3A3A"-->
                    <ContentPresenter
											  Content="{TemplateBinding Content}"
											  ContentTemplate="{TemplateBinding ContentTemplate}"
											  VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
											  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                    <!--/Border-->
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Header : Label Presenter -->
    <Style TargetType="{x:Type igDP:LabelPresenter}">
        <Setter Property="Padding" Value="5,4,5,4" />
        <!--Setter Property="Background" Value="#FF3A3A3A"/-->
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="LabelHighlight" Value="#FF5c5c5c" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="Foreground" Value="{DynamicResource VOColor10}"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontSize" Value="13"/>
        <Setter Property="FontFamily" Value="Arial Rounded MT"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:LabelPresenter}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="sbHighlightOn">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="highlight">
                                <SplineDoubleKeyFrame Value="0" KeyTime="00:00:00"/>
                                <SplineDoubleKeyFrame Value="1" KeyTime="00:00:00.1750000"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="sbHighlightOff">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="highlight">
                                <SplineDoubleKeyFrame Value="0" KeyTime="00:00:00.25"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>

                    <igWindows:CardPanel Background="#00000000">
                        <!--Border
										Width="Auto"
										Height="Auto"
										RenderTransformOrigin="0.5,0.5"
										BorderBrush="Black"
										BorderThickness="1,1,1,1"
										CornerRadius="1,1,1,1"
										SnapsToDevicePixels="True"
										Background="{TemplateBinding Background}"
										x:Name="background"
										Opacity="0.6"
										/-->

                        <Border
													x:Name="highlight"
													Opacity="0"
													Width="Auto"
													Height="Auto"
													CornerRadius="1,1,1,1"
													Background="{TemplateBinding LabelHighlight}"
								/>

                        <ContentPresenter
													x:Name="LabelContent"
													Focusable="False"
													Content="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"
													ContentTemplate="{TemplateBinding ContentTemplate}"
													ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
													HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
													VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
													Margin="{TemplateBinding Padding}"
							/>
                        <igWindows:SortIndicator
													x:Name="SortIndicator"
													SortStatus="{TemplateBinding SortStatus}"
													Visibility="Collapsed"
														HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center" Width="Auto" />
                    </igWindows:CardPanel>

                    <ControlTemplate.Triggers>
                        <Trigger Property="HighlightAsPrimary" Value="true">
                            <Setter TargetName="highlight" Property="Opacity" Value="1" />
                        </Trigger>

                        <Trigger Property="HorizontalAlignment" Value="Center">
                            <Setter Property="VerticalAlignment" TargetName="SortIndicator" Value="Top"/>
                            <Setter Property="HorizontalAlignment" TargetName="SortIndicator" Value="Center"/>
                            <Setter Property="Margin" TargetName="SortIndicator" Value="0,5,0,0"/>
                        </Trigger>

                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <MultiTrigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource sbHighlightOn}" x:Name="sbHighlightOn_BeginStoryboard"/>
                            </MultiTrigger.EnterActions>
                            <MultiTrigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource sbHighlightOff}" x:Name="sbHighlightOff_BeginStoryboard"/>
                            </MultiTrigger.ExitActions>
                        </MultiTrigger>

                        <Trigger Property="SortStatus" Value="Ascending">
                            <Setter TargetName="highlight" Property="Opacity" Value="1" />
                            <Setter TargetName="SortIndicator" Property="Visibility" Value="Visible" />
                        </Trigger>
                        <Trigger Property="SortStatus" Value="Descending">
                            <Setter TargetName="highlight" Property="Opacity" Value="1" />
                            <Setter TargetName="SortIndicator" Property="Visibility" Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Cell style -->
    <Style x:Key="BlackForegroundStyle">
        <Setter Property="TextBlock.Foreground" Value="#FF000000" />
    </Style>
    <Style x:Key="DarkGrayForegroundStyle">
        <Setter Property="TextBlock.Foreground" Value="#FF333333" />
    </Style>

    <!-- DataRecordCellArea -->
    <Style TargetType="{x:Type igDP:DataRecordCellArea}">
        <!--Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="#00FFFFFF" Offset="0" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter-->
        <Setter Property="Background" Value="#00FFFFFF" />
        <Setter Property="BorderBrush" Value="#00000000" />
        <Setter Property="BackgroundHover" Value="{DynamicResource VOColor02}"/>
        <Setter Property="BorderHoverBrush" Value="{DynamicResource VOColor13}"/>
        <Setter Property="BackgroundActive" Value="{DynamicResource VOColor01}"/>
        <Setter Property="BorderActiveBrush" Value="#00000000" />
        <Setter Property="BackgroundAlternate" Value="{DynamicResource VOColor13}"/>
        <Setter Property="BorderAlternateBrush" Value="#00000000" />
        <Setter Property="BackgroundSelected">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Offset="0" Color="#7FD3F5FF"/>
                    <GradientStop Offset="1" Color="#7FB9D8FF"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderSelectedBrush" Value="#00000000" />
        <Setter Property="CornerRadius" Value="1" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="ForegroundStyle">
            <Setter.Value>
                <Style>
                    <Setter Property="TextBlock.Foreground" Value="{DynamicResource VOColor1A}" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ForegroundActiveStyle" Value="{DynamicResource VOColor1A}" />
        <Setter Property="ForegroundAlternateStyle" Value="{DynamicResource VOColor1A}" />
        <Setter Property="ForegroundSelectedStyle" Value="{DynamicResource VOColor1A}" />
        <Setter Property="ForegroundHoverStyle">
            <Setter.Value>
                <Style>
                    <Setter Property="TextBlock.Foreground" Value="{DynamicResource VOColor1A}" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:DataRecordCellArea}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="timelineIsActive">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Active" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="timelineIsActive_off">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Active" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="timelineIsSelected">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Selected" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="timelineIsSelected_off">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Selected" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="timelineHover">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Hover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="timelineHover_off">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Hover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <igWindows:CardPanel>

                        <!-- Background -->
                        <Border x:Name="Background" Background="{TemplateBinding Background}"
										BorderBrush="{TemplateBinding BorderBrush}"
										BorderThickness="{TemplateBinding BorderThickness}"
										Opacity="0.6"/>

                        <!-- Background Alternate -->
                        <Border x:Name="Alternate"
										Visibility="Collapsed"
										Background="{TemplateBinding BackgroundAlternate}"
										BorderBrush="{TemplateBinding BorderAlternateBrush}"
										BorderThickness="{TemplateBinding BorderThickness}"
										CornerRadius="{TemplateBinding CornerRadius}"
										Opacity="0.6" />

                        <!-- Background Selected -->
                        <Border x:Name="Selected"
										Visibility="Visible"
										Background="{TemplateBinding BackgroundSelected}"
										BorderBrush="{TemplateBinding BorderSelectedBrush}"
										BorderThickness="{TemplateBinding BorderThickness}"
										CornerRadius="{TemplateBinding CornerRadius}"
										Opacity="0" />

                        <!-- Background Hover -->
                        <Border
										x:Name="Hover"
										Visibility="Visible"
										Background="{TemplateBinding BackgroundHover}"
										CornerRadius="{TemplateBinding CornerRadius}"
										BorderBrush="{TemplateBinding BorderHoverBrush}"
										BorderThickness="{TemplateBinding BorderThickness}" Opacity="0" />

                        <!-- Background Active -->
                        <Border
										x:Name="Active"
										Visibility="Collapsed"
										Background="{TemplateBinding BackgroundActive}"
										BorderBrush="{TemplateBinding BorderActiveBrush}"
										BorderThickness="{TemplateBinding BorderThickness}"
										CornerRadius="{TemplateBinding CornerRadius}"
							 />

                        <ContentPresenter
										x:Name="CellContent"
										Style="{TemplateBinding ForegroundStyle}" Content="{TemplateBinding Content}" />

                    </igWindows:CardPanel>

                    <ControlTemplate.Triggers>

                        <Trigger Property="IsActive" Value="True">
                            <Setter TargetName="CellContent" Property="Style"
											  Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundActiveStyle}" />
                            <Setter Property="Visibility" TargetName="Active" Value="Visible"/>
                        </Trigger>

                        <Trigger Property="IsSelected" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard x:Name="timelineIsSelected_BeginStoryboard" Storyboard="{StaticResource timelineIsSelected}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="timelineIsSelected_off_BeginStoryboard" Storyboard="{StaticResource timelineIsSelected_off}"/>
                            </Trigger.ExitActions>
                            <Setter TargetName="CellContent" Property="Style"
											  Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundSelectedStyle}" />
                        </Trigger>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard x:Name="timelineHover_BeginStoryboard" Storyboard="{StaticResource timelineHover}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard x:Name="timelineHover_off_BeginStoryboard" Storyboard="{StaticResource timelineHover_off}"/>
                            </Trigger.ExitActions>
                            <Setter TargetName="CellContent" Property="Style"
											  Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundHoverStyle}" />
                        </Trigger>

                        <Trigger Property="IsAlternate" Value="True">
                            <Setter TargetName="Alternate" Property="Visibility" Value="Visible" />
                            <Setter TargetName="CellContent" Property="Style"
											  Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundAlternateStyle}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Cell -->
    <Style TargetType="{x:Type igDP:CellValuePresenter}">
        <Setter Property="Foreground" Value="{DynamicResource VOColor1A}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                    <igWindows:CardPanel Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                        <!-- [JM 06-06-07] This element is not being used so I am commenting it out.  Its Visibility property is initialized to Collapsed and the IsSelected
                               trigger below has commented out the line that sets the Visibility to Visible. Checked with Grant on this and he feels it is left over
                               from early styling efforts and can be removed. -->
                        <!--<Rectangle x:Name="LeftBorder" 
							Fill="#FFBBBBBB"
							Width="1" 
							Margin="0,1,0,0" 
							HorizontalAlignment="Left" 
							VerticalAlignment="Stretch"
							Visibility="Collapsed" />-->
                        <!--Border x:Name="MainBorder"
							Margin="0,1,0,0"
							CornerRadius="{TemplateBinding CornerRadius}"
							BorderThickness="{TemplateBinding BorderThickness}"
							BorderBrush="Transparent"
							Background="Transparent"
							 /-->
                        <Rectangle
							x:Name="Active"
							Fill="{TemplateBinding BackgroundActive}"
							HorizontalAlignment="Stretch"
							VerticalAlignment="Stretch"
							Width="Auto" Height="Auto"
							SnapsToDevicePixels="True"
							Opacity="1" Visibility="Collapsed" StrokeThickness="1" Stroke="{TemplateBinding BorderActiveBrush}"/>
                        <ContentPresenter
							Name="PART_EditorSite"
							Content="{TemplateBinding Content}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							Margin="{TemplateBinding Padding}"
							Style="{TemplateBinding ForegroundStyle}"
							/>
                    </igWindows:CardPanel>
                    <ControlTemplate.Triggers>
                        <!-- HighlightAsPrimary -->
                        <Trigger Property="HighlightAsPrimary" Value="true">
                            <!--Setter TargetName="MainBorder" Property="Background"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BackgroundPrimary}" />
              <Setter TargetName="MainBorder" Property="BorderBrush"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderPrimaryBrush}" /-->
                            <Setter TargetName="PART_EditorSite" Property="Style"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundPrimaryStyle}" />
                        </Trigger>

                        <!-- IsFieldSelected -->
                        <Trigger Property="IsFieldSelected" Value="true">
                            <!--Setter TargetName="MainBorder" Property="Background"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BackgroundFieldSelected}" />
              <Setter TargetName="MainBorder" Property="BorderBrush"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderFieldSelectedBrush}" /-->
                            <Setter TargetName="PART_EditorSite" Property="Style"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundFieldSelectedStyle}" />
                        </Trigger>

                        <!-- IsSelected -->
                        <Trigger Property="IsSelected" Value="true">
                            <!--Setter TargetName="MainBorder" Property="Background"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BackgroundSelected}" />
              <Setter TargetName="MainBorder" Property="BorderBrush"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderSelectedBrush}" /-->
                            <Setter TargetName="PART_EditorSite" Property="Style"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundSelectedStyle}" />
                            <!--<Setter Property="Visibility" Value="Visible" TargetName="LeftBorder" />-->
                        </Trigger>

                        <!-- IsActive -->
                        <Trigger Property="IsActive" Value="true">
                            <Setter TargetName="PART_EditorSite" Property="Style"
								Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ForegroundActiveStyle}" />
                            <Setter Property="Visibility" TargetName="Active" Value="Visible"/>
                        </Trigger>

                        <!-- IsMouseOver -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="IsSelected" Value="False"/>
                                <Condition Property="IsFieldSelected" Value="False"/>
                            </MultiTrigger.Conditions>
                            <!--Setter TargetName="MainBorder" Property="Background"
								Value="{Binding Path=BackgroundHover, RelativeSource={RelativeSource TemplatedParent}}" />
              <Setter TargetName="MainBorder" Property="BorderBrush"
								Value="{Binding Path=BorderHoverBrush, RelativeSource={RelativeSource TemplatedParent}}" /-->
                            <Setter TargetName="PART_EditorSite" Property="Style"
								Value="{Binding Path=ForegroundHoverStyle, RelativeSource={RelativeSource TemplatedParent}}" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- The records selector arrow -->
    <Style TargetType="{x:Type igDP:RecordSelector}">
        <Setter Property="Background" Value="{DynamicResource VOColor02}"/>
    </Style>

    <!-- RecordScrollTip -->
    <Style TargetType="{x:Type igDP:RecordScrollTip}" BasedOn="{StaticResource {x:Type ToolTip}}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:RecordScrollTip}">
                    <Grid SnapsToDevicePixels="True">
                        <Border
													  x:Name="outerBorder"
													  Opacity="1"
													  HorizontalAlignment="Stretch"
													  VerticalAlignment="Stretch"
													  CornerRadius="1,1,1,1"
													  BorderBrush="{DynamicResource VOColor10}"
													  BorderThickness="1"
								  Background="{DynamicResource VOColor14}">
                        </Border>
                        <Border
													  x:Name="innerBorder"
													  Opacity="1"
													  HorizontalAlignment="Stretch"
													  VerticalAlignment="Stretch"
													  Margin="1,1,1,1"
													  CornerRadius="1,1,1,1"
													  BorderBrush="{DynamicResource VOColor1A}"
													  BorderThickness="1" />
                        <ContentPresenter Margin="5,5,5,5" />
                    </Grid>
                    <!--ControlTemplate.Triggers>
							<DataTrigger Binding="{Binding Source={x:Static interop:BrowserInteropHelper.IsBrowserHosted}}" Value="True">
								<Setter Property="CornerRadius" TargetName="outerBorder" Value="0" />
								<Setter Property="CornerRadius" TargetName="innerBorder" Value="0" />
							</DataTrigger>
						</ControlTemplate.Triggers-->
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TreeView ItemsSource="{Binding}">
                        <TreeView.Style>
                            <Style TargetType="{x:Type TreeView}">
                                <Setter Property="Background" Value="Transparent"/>
                                <Setter Property="BorderThickness" Value="0"/>
                                <Setter Property="VerticalContentAlignment" Value="Top"/>
                                <Setter Property="Foreground" Value="{DynamicResource VOColor02}" />
                            </Style>
                        </TreeView.Style>

                        <TreeView.ItemContainerStyle>
                            <Style TargetType="{x:Type TreeViewItem}">
                                <Setter Property="IsExpanded" Value="true"/>
                                <Setter Property="Focusable" Value="false"/>
                                <Setter Property="Foreground" Value="{DynamicResource VOColor02}" />
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate>
                                            <StackPanel Orientation="Vertical">
                                                <ContentPresenter
																										  ContentSource="Header"
																										  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
																										  x:Name="PART_Header"
																										  ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
																										  Content="{TemplateBinding HeaderedContentControl.Header}"
																										  Grid.ColumnSpan="2" TextBlock.Foreground="{DynamicResource VOColor02}"/>
                                                <StackPanel Orientation="Horizontal" x:Name="ItemsHostPanel">
                                                    <FrameworkElement MinWidth="10" Height="0"/>
                                                    <ItemsPresenter x:Name="ItemsHost" Grid.Column="1"
																													  Grid.Row="1"
																													  Grid.ColumnSpan="2" TextBlock.Foreground="White" />
                                                </StackPanel>
                                            </StackPanel>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </TreeView.ItemContainerStyle>
                    </TreeView>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>